/************************************************************
Copyright (C), 2017-2040, Wizzy-phone 
FileName: uart.h
Author:	Linhao
Version :
Date:	2017.12.19
Description:  set uart function 
Version:	V1.0 
Function List:
History: 
***********************************************************/
#ifndef __UART_H_
#define __UART_H_


#include "stm8l15x_gpio.h"
#include "stm8l15x_clk.h"

typedef unsigned char U8;


#define USART_RX_GPIO_Pin               GPIO_Pin_7
#define USART_TX_GPIO_Pin               GPIO_Pin_6
#define USART_Typex                     USART3
#define USART_GPIOx						GPIOE

void USART_Config(void);
void UART_SendStr(U8 *str);
void USART_SendByte(U8 data);
void Delay_ms(uint32_t nLoop);

#endif	//__UART_H_